# -*- coding:utf-8 -*-

import wmi,time,subprocess,gevent,socket

from gevent import monkey
from concurrent.futures import ProcessPoolExecutor,ThreadPoolExecutor,wait,as_completed
from multiprocessing import Process, Queue
import multiprocessing

# monkey;monkey.patch_all() # 遇到耗时的操作（阻塞），monkey.patch_all()将耗时的操作自动转换gevent内部模块
# monkey.patch_all(thread=False,select=False)
from plugins.windows_collection import Win32Info

class InfoCollection (object):
    def collect (self):
        from plugins.windows_collection import Win32Info
        ip_list = []
        # for s in range (1,254):
        #     for i in range (2,255):
        #         ip_list.append ('172.25.{}.{}'.format (s,i))
                    
        for i in range (6,7):
            ip_list.append ('192.168.1.{}'.format (i))
        data = Win32Info(ip_list).asy ()
        return data
            
    # @staticmethod 
    # def linux ():
        # from plugins.collect_linx_info import collect 
        # return collect ()

        
    # @staticmethod
    # def build_report_data (data):
        # 留下一个接口，方便以后增加功能或者过滤数据
        # pass 
        # return data
        

        
    